<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Using custom HTML</title>
</head>
<body>
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.2.0/styles/default.min.css">
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.2.0/highlight.min.js"></script>
<pre>
    <code id="example1">
let a = 123;
console.log(a);
function abc(){}
class bb{
  constructor(){}
  do(){}
}
for(let i=0;i<3;++i){
  console.log(i)
}
console.log(a)
const a = require('hightlight.js')
    </code>
</pre>

<script>
  // highlightAll: () => void
  const r = hljs.highlightAll()

  /*
    Applies highlighting to all elements on a page matching the configured `cssSelector`.
    对匹配配置的cssSelector的页面上的所有元素应用高亮显示

    The default cssSelector value is 'pre code', which highlights all code blocks.
    默认的cssSelector值是'pre code'，它突出显示所有代码块

    This can be called before or after the page’s onload event has fired.
    这可以在页面的onload事件触发之前或之后调用。
  */


  console.log(r); //undefined

</script>
</body>
</html>
